package multiconnector;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ListView;
import android.widget.TextView;

/**
 * display and manage avaiable groups
 */
public class GroupsDiscovery extends Activity {

	TextView offerName;
	ListView availableGroups;

	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);


		setContentView(R.layout.discovery);

		offerName = (TextView) findViewById(R.id.offerText);
		availableGroups = (ListView) findViewById(R.id.availableGroups);

	}


	public void offer(View view) {
		Log.d(GroupsDiscovery.class.getName(), "offering own group:" + offerName.getText());
	}

	static class AvailableGroupsAdapter extends BaseAdapter {

		public int getCount() {
			return 0;
		}

		public Object getItem(int position) {
			return null;
		}

		public long getItemId(int position) {
			return 0;
		}

		public View getView(int position, View convertView, ViewGroup parent) {
			return null;
		}


	}
}